package com.xlh.dto.courseTest;

import lombok.Data;

/**
 * @author zhr 2019/6/26
 */
@Data
public class GradeStatisticsExcelListDTO {
    // 班级名称
    private String className;
    // 课程状态中文说明
    private String endedMessage;
    // 学生姓名
    private String studentName;
    // 随堂练习
    private Integer practice;
    // 实验报告
    private Integer experiment;
    // 考试次数
    private Integer count;
    // 考试成绩
    private String score;

    public GradeStatisticsExcelListDTO(GradeStatisticsListDTO dto) {
        this.className = dto.getClassName();
        this.endedMessage = dto.getEndedMessage();
        this.studentName = dto.getStudentName();
        this.practice = dto.getPractice().getTotal();
        this.experiment = dto.getExperiment().getTotal();
        this.count = dto.getCount();
        this.score = dto.getScoreList().toString().substring(1, dto.getScoreList().toString().length() - 1);
    }
}
